module.exports=cb=>{
    let data={code:200,status:'OK'};
    let delay=1000;

    if(cb){
        setTimeout(()=>{
            cb(data);
        },delay);
    }else{
        return new Promise((resolve,reject)=>{
            setTimeout(()=>{
                resolve(data);
            },delay);
        });
    }
};
